package com.poh.mapper;

import com.poh.pojo.Homework;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface HomeworkMapper {
    int addHomework(Homework homework);
    int updateHomework(Homework homework);
    int deleteHomework(@Param("homeworkId") String homeworkId);
    List<Homework> queryHomeworkByCourseId(@Param("courseId") int courseId);
    int releaseHomework(Homework homework);
    Homework queryHomeworkById(@Param("homeworkId") String homeworkId);
    List<Homework> queryHomeworkByCourseIdWithoutScore(@Param("courseId") int courseId);
    int updateHomeworkStatusById(@Param("homeworkId") String homeworkId, @Param("homeworkStatus") int homewrokStatus);
}
